package com.mrxu.monitor.base;

import lombok.Data;

@Data
public class ResultCode {

    public final static ResultCode OK = new ResultCode(0,"成功");
    public final static ResultCode ERR_NOT_AUTH = new ResultCode(401,"未登录或登录过期");
    public final static ResultCode ERR_FORBIDDEN = new ResultCode(403,"无访问权限");
    public final static ResultCode ERROR = new ResultCode(500,"系统错误");
    public final static ResultCode ERR_PARAMS_MISS = new ResultCode(510,"缺少必要参数");
    public final static ResultCode ERR_PARAMS_VALID = new ResultCode(511,"参数格式错误");

    public int code;

    public String msg;

    public ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResultCode() {
    }

}
